<?php
// +----------------------------------------------------------------------
// | TTcms [ 天天互联 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2018 http://ttcms.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 马博 <8355763@qq.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 模型验证
// +----------------------------------------------------------------------
namespace app\cms\validate;

use think\Validate;

class Site extends Validate
{
	//定义验证规则
	protected $rule = [
        'name|站点名称' => 'require|max:30|unique:site',
        //'domain|域名' => 'require|regex:/^[A-Za-z0-9][a-zA-Z][A-Za-z0-9\-\.]+$/',
        'template|主题风格' => 'require',
	];
}
